import request from '@/utils/request'

// 审批
export function completeUserTaskById(vo){
  return request({
    url: '/business/act/completeUserTaskById',
    method: 'get',
    params: vo
  })
}

// 待办任务
export function queryUserTaskByUserName(){
  return request({
    url: '/business/act/queryUserTaskByUserName',
    method: 'get'
  })
}

// 查询商户列表
export function listTenant(query) {
  return request({
    url: '/business/tenant/list',
    method: 'get',
    params: query
  })
}

// 查询商户详细
export function getTenant(id) {
  return request({
    url: '/business/tenant/' + id,
    method: 'get'
  })
}

// 新增商户
export function addTenant(data) {
  return request({
    url: '/business/tenant/add',
    method: 'post',
    data: data
  })
}

// 修改商户
export function updateTenant(data) {
  return request({
    url: '/business/tenant',
    method: 'put',
    data: data
  })
}

// 删除商户
export function delTenant(id) {
  return request({
    url: '/business/tenant/' + id,
    method: 'delete'
  })
}
